# Maintainer:

pkgbase=pysmbc
pkgname=('python-pysmbc')
pkgver=1.0.23
pkgrel=4
arch=('x86_64')
url="http://pypi.python.org/pypi/pysmbc/"
license=('GPL')
makedepends=('python' 'smbclient' 'python-setuptools')
# validpgpkeys=('228521116D3438163C2EA5B916BED1016069BE55')  # Tsukasa Hamano, revoked
source=(https://pypi.io/packages/source/p/${pkgbase}/${pkgbase}-${pkgver}.tar.gz)
sha512sums=('cfc990440d219ec0b56e158f3fec47e90f7a618cc6f26ab4ae35679fc0803fb8e171e6b1856586f7a33593bb6f58640283118fc34089412a3af1b6a10fa1f5a6')

build(){
  cd ${pkgbase}-${pkgver}
  python setup.py build
}

check() {
  cd ${pkgbase}-${pkgver}
  # requires a samba test server
}

package_python-pysmbc() {
  pkgdesc="Python 3 bindings for libsmbclient"
  depends=('python' 'smbclient')

  cd ${pkgbase}-${pkgver}
  python setup.py install --root="$pkgdir" --optimize=1
}
